package com.gzx.plugin.tjzy.modular.founds.vo;


import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.fhs.core.trans.anno.Trans;
import com.fhs.core.trans.constant.TransType;
import com.fhs.core.trans.vo.TransPojo;
import com.gzx.plugin.tjzy.modular.founds.entity.GzxFoundsFlowRecord;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;


/**
 * 查看某个产品的短信花了多少钱
 *
 * @author xbl
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = GzxFoundsFlowRecord.class)
public class GzxFoundsAmountVo implements Serializable, TransPojo {
    /**
     * 自增主键
     */
    private String id;

    /**
     * 流水记录类型（0：短信；1：电话）
     */
    @Trans(type = TransType.DICTIONARY, key = "FoundsFlowType")
    private int foundsType;
    /**
     * 交易方式（0：消费，1：充值，2：冻结，3：解冻）
     */
    @Trans(type = TransType.DICTIONARY, key = "TransType")
    private int transType;

    /**
     * 项目编码
     */
    private String projectCode;

    /**
     * 项目名称
     */
    private String projectName;

    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 创建人姓名
     */
    @Trans(type = TransType.RPC, targetClassName = "vip.xiaonuo.sys.modular.user.entity.SysUser", fields = "name", alias = "createUser", ref = "createUserName", serviceName = "snowy-web-app")
    private String createUser;
    private String createUserName;

    /**
     * 变动前金额
     */
    private BigDecimal foundsPre;
    /**
     * 变动金额
     */
    private BigDecimal foundsAmount;
    /**
     * 变动后金额
     */
    private BigDecimal foundsAvailable;

    /**
     * 流水记录备注
     */
    private String foundsRemark;

}
